String.Format("Your query {0} with {1} Placeholders", theQuery, results.Count) Equivalent in XSLT
I'm working on a multilingual multi site umbraco 4.5 instance. In my dictionary I have a sentence for search results which is rendered from within my macros XSLT.
Your query 'Duncan' matched 5 results.
I'm not aware of what languages will be needed but different languages being as they are one language could order the words differently e.g. "5 results matched 'Duncan' query" or something. For this reason having a dictionary item for "Your query", "matched" and "results" isn't feasible. If I was to make this a user control for C# I would have the translator to provide a dictionary item like "Your query '{0}' matched {1} results".
Is there an equivalent function and string format in XSLT for use in my macro?
If your interested I'm working around XSLTSearch in this case but I'll need this type of functionality for other areas of the site.
String.Format("Your query {0} with {1} Placeholders", theQuery, results.Count) Equivalent in XSLT
I'm working on a multilingual multi site umbraco 4.5 instance. In my dictionary I have a sentence for search results which is rendered from within my macros XSLT.
Your query 'Duncan' matched 5 results.
I'm not aware of what languages will be needed but different languages being as they are one language could order the words differently e.g. "5 results matched 'Duncan' query" or something. For this reason having a dictionary item for "Your query", "matched" and "results" isn't feasible. If I was to make this a user control for C# I would have the translator to provide a dictionary item like "Your query '{0}' matched {1} results".
Is there an equivalent function and string format in XSLT for use in my macro?
If your interested I'm working around XSLTSearch in this case but I'll need this type of functionality for other areas of the site.
Cheers
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.